<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ page import="com.lbl.bean.User" %>
<%@ page import="com.lbl.bean.Birthday" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--向域中存储JavaBean对象--%>
<%
    User user = new User("baoqiang",35,"male",new Birthday(1988,12,23));
    request.setAttribute("user", user);
%>
<%=((User)request.getAttribute("user")).getName()%>
<%--使用EL表达式来简化--%>
${requestScope.user.name}
${user.name}
${requestScope.user.birthday.year}
${user.birthday.year}

</body>
</html>
